//----------------------------------------------------------
// GraphicsManager.cpp
//   Game-specific implementation of Graphics Manager class
//   DirectX support
//----------------------------------------------------------

#include <windows.h>
#include "GraphicsManager.h"
#include "Graphics.h"
#include "Engine.h"

GraphicsManager::GraphicsManager()
{
	// do nothing
}

GraphicsManager::~GraphicsManager()
{
	delete _graphics;
}

bool GraphicsManager::Initialize(Graphics *graphics, Engine* pEngine)
{
	// set the graphics core to the specific core type (DirectX only)
	_graphics = graphics;

	// initialize that core as normal
	return _graphics->Initialize(pEngine);
}

bool GraphicsManager::Update(float deltaTime)
{
	return _graphics->Update(deltaTime);
}

bool GraphicsManager::Shutdown()
{
	return _graphics->Shutdown();
}

bool GraphicsManager::RenderStart()
{
	return _graphics->RenderStart();
}

void GraphicsManager::RenderEnd()
{
	_graphics->RenderEnd();
}
